<script setup>
import LineDom from "./LineDom.vue";
const { code } = defineProps(['code'])


const data = ref([])

watchEffect(()=>{
  data.value = code.split("\n")
})


</script>

<template>
  <template v-for="item in data">
    <LineDom :line="item" />
  </template>
</template>

<style scoped>

</style>